//
//  ZSUDPClient.h
//  ZhuShou
//
//  Created by Dejun Liu on 15/11/9.
//  Copyright © 2015年 jw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CocoaAsyncSocket/GCDAsyncUdpSocket.h>

@interface ZSUDPClient : NSObject<GCDAsyncUdpSocketDelegate>

/**
 *  客户端
 */
@property (nonatomic,strong,readonly) GCDAsyncUdpSocket *client;

- (void)sendString:(NSString *)string
            hostIP:(NSString *) ip
              port:(UInt16) port
           timeout:(NSTimeInterval) timeout
               tag:(long) tag;

- (void)sendData:(NSData *)data
          hostIP:(NSString *) ip
            port:(UInt16) port
         timeout:(NSTimeInterval) timeout
             tag:(long) tag;

@end
